package com.bw.module_car.adpter

import android.widget.TextView
import com.bw.module_car.R
import com.bw.module_car.entity.RecordEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class RecordAdapter : BaseQuickAdapter<RecordEntity,BaseViewHolder>(R.layout.item_record) {
    override fun convert(holder: BaseViewHolder, item: RecordEntity) {
        holder.getView<TextView>(R.id.car_number).setText("车牌号：${item.plateNumber}")
        holder.getView<TextView>(R.id.monthcard).setText("${item.paymentAmount}元/月卡")
        holder.getView<TextView>(R.id.time).setText("${item.entryTime}")
        holder.getView<TextView>(R.id.parktime).setText("2小时")

    }

}